export function resultWrapper (data, message) {
  let res = {}
  if (data) {
    res = {
      code: 200,
      data,
      message: message || '操作成功'
    }
  } else {
    res = {
      code: 500,
      data,
      message: message || '操作失败'
    }
  }
  return res
}
